package org.wlw.dao;

import org.wlw.models.User;

import java.util.List;

public interface IUserDao {
    void add(User user);
    void update(User user);
    void delete(int id);
    void deleteByUsername(String username);
    User load(int id);
    User loadByUsername(String username);
    List<User> find();
    User login(String username,String password);
}
